package com.web.dao;

import com.web.VO.MyIdelVO;
import com.web.VO.MyPublishVO;
import com.web.VO.MySupplyVO;
import com.web.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplyInfoMapper {

    void insertSelective(Supply supply);

    List<SupplyList> getSupplyList();


    List<LeaveUnused> LeaveuNusedList();

    SupplyDetails getSupplyDetails(@Param("id")Integer id,@Param("userId")String userId);

    List<SupplyList> findUserSupplyList(String user_id);

    void insertReleaseFourIdles(LeaveUnusedInfo leaveUnusedInfo);

    List<FourIdleLists> getFourIdleLists(@Param("lu_id")Integer lu_id);

    FourIdleDetails getFourIdleDetails(@Param("id")int id,@Param("user_id") String user_id);

    void updateFourIdleDetails(FourIdleDetails life);

    void updateApplySupply(InstantInfoSupply life);

    void updateFourLeisureHours(InstantInfoFourLeisureHours life);


    FourIdleDetails findUserFourIdle(@Param("typeId")Integer typeId);

    void updateCollectionNum(FourIdleDetails userDetails);

    List<MyPublishVO> listMyPublishSupply(String userId);

    List<MyPublishVO> listMyPublishIdel(String userId);

    List<FourIdleLists> getUserIdleDetails(String user_id);

    void DeleteMySupply(@Param("typeId")Integer typeId);

    Supply findMySupply(@Param("userId")String userId, @Param("typeId")Integer typeId);

    LeaveUnusedInfo findMyLeaveUnusedInfo(String userId, Integer typeId);

    void DeleteLeaveUnusedInfo(Integer typeId);
}
